import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
//导入并注册
import GobalComponent from './components/GobalComponent.vue'
//注册全局组件 component（组件名称'，需要被注册的组件）

// createApp(App).mount('#app')
const app=createApp(App)//创建了vue实例
app.component('GobalComponent',GobalComponent)
app.mount('#app')
